const alertMsg = function(msg, option) {
	uni.showModal({
		content: msg || '提示信息',
		showCancel: false,
		mask: true,
		complete: function(res) {
			option && typeof option.cb == 'function' && option.cb(res);
		}
	})
}
const alertDialog = function(msg, option) {
	uni.showModal({
		content: msg || '提示信息',
		showCancel: true,
		complete: function(res) {
			option && typeof option.cb == 'function' && option.cb(res.confirm);
		}
	})
}
const alertToast = function(msg, icon) {
	uni.showToast({
		title: msg || '提示信息',
		icon: icon || 'none',
		duration: 1000
	})
}

export default {
	alertMsg,
	alertDialog,
	alertToast
}
